const proxy = require('http-proxy-middleware');

if (process.env.NODE_ENV === "development") {
    console.log('proxy', proxy)
    module.exports = function (app) {
        app.use(
            "/dev",
            proxy({
                // target: "https://xdtest.aiedu100.com/message-center/",   //文松本地
                // target: "https://zhxy.sttbzx.com:10101/message-center/",   //文松本地
                // target: "http://192.168.129.134:10343/message-center/",   //文松本地
                // target: "http://192.168.122.124:22101/message-center/",   //文松本地
                // target: "http://192.168.122.120:42101/message-center/",   //120
                // target: "http://192.168.129.115:10343/message-center/",
                target: "https://jdtest.aiedu100.com/message-center/",
                changeOrigin: true,
                pathRewrite: { "^/dev": "" }
            })
        )
    }

}

// 